<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:winter="http://www.winter.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
	layout:decorator="/layouts/layout">

<div id="PoderGestionFragment"
	th:fragment="PoderGestionFragment">
	<winter:output id="mainPoderDialogOutput"
		class="winter-form form-container">
		<winter:output id="formPoderDialogOutput" class="cabecera">
			<winter:row>
				<winter:column type="col-md-4">
					<winter:inputtext id="nombrePoder"
						field="*{poder.nombre}"
						label="#{label.persona.poder.nombre}" labeldisplay="col-xs-4"
						inputdisplay="col-xs-8" containerdisplay="row padded"
						class="winter-input-text capitalize" maxlength="250"
						maxlengthmessage="Favor ingrese hasta 250 digitos">
					</winter:inputtext>
				</winter:column>
			</winter:row>
			<winter:row>
					<winter:textarea
						id="textoId" 
						field="*{poder.texto}" 
						class="template-area-small"
						label="#{label.persona.poder.texto}"
						labeldisplay="col-xs-4"
						inputdisplay="col-xs-8"
						containerdisplay="row padded template-area-small"
						type="char">
					</winter:textarea>
			</winter:row>
			<winter:row class="button-panel-right" padded="true">
				<winter:ajaxSubmit id="CrearLegitimacion" form="PersonasForm"
					url="@{'/personas/guardarLegitimacion'}"
					update="LegitimacionesInclude" object="personas"
					value="#{label.operaciones.guardar}" showstatus="true"
					class="btn btn-cyan" process="LegitimacionCrearContainer"
					oncomplete="@{'Winter.ui.CloseDialog(\'LegitimacionDialog\')'}">
				</winter:ajaxSubmit>
				<winter:ajaxSubmit id="CrearLegitimacionCancelar"
					form="PersonasForm" object="personas"
					url="@{'/personas/cancelar/LEGITIMACION'}"
					update="DialogOutput, CrearEditarPersonaOutput,LegitimacionCrearDiV"
					value="#{label.operaciones.cancelar}" showstatus="true"
					class="btn btn-danger" process="LegitimacionCrearContainer"
					immediate="true"
					oncomplete="@{'Winter.ui.CloseDialog(\'LegitimacionDialog\')'}">
				</winter:ajaxSubmit>
			</winter:row>
		</winter:output>
	</winter:output>
</div>
</html>